<%--
  Created by IntelliJ IDEA.
  User: 13016
  Date: 2025/1/2
  Time: 9:17
  To change this template use File | Settings | File Templates.
--%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>添加楼宇信息</title>
    <style>
        body, html {
            margin: 0;
            padding: 0;
            font-family: Arial, sans-serif;
        }
        .header {
            background-color: #007BFF;
            color: white;
            padding: 10px;
            text-align: center;
        }
        .sidebar {
            width: 200px;
            background-color: #f8f9fa;
            float: left;
            height: 100vh;
            padding-top: 20px;
        }
        .sidebar a {
            display: block;
            padding: 10px;
            text-decoration: none;
            color: black;
        }
        .sidebar a:hover {
            background-color: #ddd;
        }
        .container {
            width: 50%;
            margin: 0 auto;
            padding: 20px;
            border: 1px solid #ddd;
            border-radius: 5px;
        }
        .form-group {
            margin-bottom: 15px;
        }
        label {
            display: block;
            margin-bottom: 5px;
        }
        input[type="text"], textarea {
            width: 100%;
            padding: 8px;
            box-sizing: border-box;
        }
        input[type="submit"] {
            padding: 10px 20px;
            background-color: #4CAF50;
            color: white;
            border: none;
            border-radius: 5px;
            cursor: pointer;
        }
        input[type="submit"]:hover {
            background-color: #45a049;
        }
    </style>
</head>
<body>
<jsp:include page="/nav.jsp"/>
<div class="container">
    <h1>添加楼宇信息</h1>
    <form action="buildingAdd2" method="post">
        <div class="form-group">
            <label for="name">楼宇名称:</label>
            <input type="text" id="name" name="name" required>
        </div>
        <div class="form-group">
            <label for="address">楼宇地址介绍:</label>
            <input type="text" id="address" name="address" required> <!-- 修改了这里的name属性 -->
        </div>
        <div class="form-group">
            <label for="totalrooms">楼宇房间数</label>
            <input type="text" id="totalrooms" name="totalrooms" required> <!-- 修改了这里的name属性 -->
        </div>
        <!-- Add more fields as needed -->
        <input type="submit" value="提交">
    </form>
</div>
</body>
</html>
